﻿function foo(a){if(a){bar(a);function bar(x){alert(x)}}}